<template>
  <div class="iim-box" :class="{showDivider:showDiv}">
    <div class="iim-item">
      <slot name="name"></slot>
    </div>
    <div class="iim-occpy"></div>
    <div class="iim-content">
      <div class="iim-input">
        <slot name="input"></slot>
      </div>
      <div class="iim-right">
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "InputItem",
    props:{
      showDiv:{
        type:Boolean,
        default:true
      }
    }
  }
</script>

<style scoped>
  .iim-box {
    background-color: white;
    width: 100%;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    justify-content: space-between;

  }
  .showDivider{
    border-bottom: 1px solid lightgrey;
  }
  .iim-item{
    max-width: 26rem;
    text-align: left;
  }
  .iim-occpy{
    height: 3rem;
  }
  .iim-content{
    max-width: 20rem;
    display: flex;
    text-align: right;
    justify-content: right;
    align-items: center;
  }
  .iim-input{
    color: black;
    width: 14rem;
    text-align: right;
  }
  .iim-right{
    margin-left: 0.5rem;
    height: 100%;
    text-align: right;
    color: gray;
    font-size: 14px;
  }
  .iim-input > input{
    padding: 0.2rem 0;
  }

</style>
